package com.yequan.work;

import com.alibaba.fastjson.JSON;

import java.util.*;
import java.util.stream.Collectors;

/**
 * @author yequan
 * @date 2021/02/23 18:27
 **/
public class CouponDemo {


    public static void main(String[] args) {
//        CouponSet couponSetInfo1 = new CouponSet();
//        couponSetInfo1.setId("111");
//        CouponSet couponSetInfo2 = new CouponSet();
//        couponSetInfo2.setId("222");
//
//        Coupon couponInfo1 = new Coupon();
//        couponInfo1.setId("333");
//        couponInfo1.setCouponSet(couponSetInfo1);
//
//        Coupon couponInfo2 = new Coupon();
//        couponInfo2.setId("444");
//        couponInfo2.setCouponSet(couponSetInfo2);
//
//        List<Coupon> couponInfoList = new ArrayList<>();
//        couponInfoList.add(couponInfo1);
//        couponInfoList.add(couponInfo2);
//        System.out.println(JSON.toJSONString(couponInfoList));

        /*String couponListStr = "[\n" +
                "        {\n" +
                "          \"assign_time\": \"20210411204023\",\n" +
                "          \"code\": \"40474-OO8BTXa\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"city_desc\": \"限北京,广州,潮州,东莞,云浮,中山,阳江,清远,揭阳,汕头,梅州,韶关,江门,佛山,河源,惠州,汕尾,茂名,肇庆,深圳,珠海,湛江可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"1,3,138,146,383,388,374,290,216,306,263,308,206,95,192,88,307,261,396,4,389,395\",\n" +
                "            \"code_rule\": \"general_unex\",\n" +
                "            \"count_pre\": 100,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210430235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"OO8BTXa\",\n" +
                "            \"id\": \"40474\",\n" +
                "            \"order_desc\": \"全部顺风车订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"10.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"quantity\": \"50000000\",\n" +
                "            \"ride_type\": \"70,71,72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"\",\n" +
                "            \"start_time\": \"20210311000000\",\n" +
                "            \"title\": \"顺风车车主接单奖\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"12.00\",\n" +
                "            \"use_type\": \"shoudanCashCoup\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"\",\n" +
                "            \"valid_date\": \"15\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"\",\n" +
                "            \"valid_week\": \"1|2|3|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"满10元可返利\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210411204023\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"即将过期\",\n" +
                "          \"expire_time\": \"20210425235959\",\n" +
                "          \"id\": \"753942192682174465\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"12.00\",\n" +
                "          \"real_unit_price\": \"12.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 1,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"186781211\",\n" +
                "          \"valid_begin_time\": \"20210411204023\",\n" +
                "          \"valid_time_desc\": \"2021.04.25 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210411204023\",\n" +
                "          \"code\": \"40475-woPHPup\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"city_desc\": \"限北京,广州,潮州,东莞,云浮,中山,阳江,清远,揭阳,汕头,梅州,韶关,江门,佛山,河源,惠州,汕尾,茂名,肇庆,深圳,珠海,湛江可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"1,3,138,146,383,388,374,290,216,306,263,308,206,95,192,88,307,261,396,4,389,395\",\n" +
                "            \"code_rule\": \"general_unex\",\n" +
                "            \"count_pre\": 100,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210430235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"woPHPup\",\n" +
                "            \"id\": \"40475\",\n" +
                "            \"order_desc\": \"全部顺风车订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"10.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"quantity\": \"50000000\",\n" +
                "            \"ride_type\": \"70,71,72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"\",\n" +
                "            \"start_time\": \"20210311000000\",\n" +
                "            \"title\": \"顺风车车主接单奖\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"10.00\",\n" +
                "            \"use_type\": \"shoudanCashCoup\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"\",\n" +
                "            \"valid_date\": \"15\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"\",\n" +
                "            \"valid_week\": \"1|2|3|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"满10元可返利\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210411204023\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"即将过期\",\n" +
                "          \"expire_time\": \"20210425235959\",\n" +
                "          \"id\": \"753942192682173954\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"10.00\",\n" +
                "          \"real_unit_price\": \"10.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 1,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"186781211\",\n" +
                "          \"valid_begin_time\": \"20210411204023\",\n" +
                "          \"valid_time_desc\": \"2021.04.25 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210420210811\",\n" +
                "          \"code\": \"40431-5uH7wdE\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"city_desc\": \"全国可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"0\",\n" +
                "            \"code_rule\": \"general_unex\",\n" +
                "            \"count_pre\": 99,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210531235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"5uH7wdE\",\n" +
                "            \"id\": \"40431\",\n" +
                "            \"order_desc\": \"限顺风车城际订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"10.00\",\n" +
                "            \"passenger_tags\": \"user_group_user_3080\",\n" +
                "            \"quantity\": \"50000000\",\n" +
                "            \"ride_type\": \"72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"本券限制接新用户订单可用\",\n" +
                "            \"start_time\": \"20210401000000\",\n" +
                "            \"title\": \"新客订单现金券\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"15.00\",\n" +
                "            \"use_type\": \"xinCashCoup\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"\",\n" +
                "            \"valid_date\": \"10\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"\",\n" +
                "            \"valid_week\": \"0\",\n" +
                "            \"value_min_desc\": \"满10元可返利\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210420210811\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210429235959\",\n" +
                "          \"id\": \"760636053831812100\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"15.00\",\n" +
                "          \"real_unit_price\": \"15.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"186781211\",\n" +
                "          \"valid_begin_time\": \"20210420210811\",\n" +
                "          \"valid_time_desc\": \"2021.04.29 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210420210811\",\n" +
                "          \"code\": \"40472-kAIivyZ\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"city_desc\": \"限北京,广州,潮州,东莞,云浮,中山,阳江,清远,揭阳,汕头,梅州,韶关,江门,佛山,河源,惠州,汕尾,茂名,肇庆,深圳,珠海,湛江可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"1,3,138,146,383,388,374,290,216,306,263,308,206,95,192,88,307,261,396,4,389,395\",\n" +
                "            \"code_rule\": \"general_unex\",\n" +
                "            \"count_pre\": 100,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210430235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"kAIivyZ\",\n" +
                "            \"id\": \"40472\",\n" +
                "            \"order_desc\": \"全部顺风车订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"10.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"quantity\": \"50000000\",\n" +
                "            \"ride_type\": \"70,71,72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"\",\n" +
                "            \"start_time\": \"20210311000000\",\n" +
                "            \"title\": \"顺风车车主接单奖\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"15.00\",\n" +
                "            \"use_type\": \"shoudanCashCoup\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"\",\n" +
                "            \"valid_date\": \"15\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"\",\n" +
                "            \"valid_week\": \"1|2|3|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"满10元可返利\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210420210811\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210504235959\",\n" +
                "          \"id\": \"760636053831811586\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"15.00\",\n" +
                "          \"real_unit_price\": \"15.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"186781211\",\n" +
                "          \"valid_begin_time\": \"20210420210811\",\n" +
                "          \"valid_time_desc\": \"2021.05.04 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210420210811\",\n" +
                "          \"code\": \"40473-1YbHYBN\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"city_desc\": \"限北京,广州,潮州,东莞,云浮,中山,阳江,清远,揭阳,汕头,梅州,韶关,江门,佛山,河源,惠州,汕尾,茂名,肇庆,深圳,珠海,湛江可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"1,3,138,146,383,388,374,290,216,306,263,308,206,95,192,88,307,261,396,4,389,395\",\n" +
                "            \"code_rule\": \"general_unex\",\n" +
                "            \"count_pre\": 100,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210430235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"1YbHYBN\",\n" +
                "            \"id\": \"40473\",\n" +
                "            \"order_desc\": \"全部顺风车订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"10.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"quantity\": \"50000000\",\n" +
                "            \"ride_type\": \"70,71,72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"\",\n" +
                "            \"start_time\": \"20210311000000\",\n" +
                "            \"title\": \"顺风车车主接单奖\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"15.00\",\n" +
                "            \"use_type\": \"shoudanCashCoup\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"\",\n" +
                "            \"valid_date\": \"15\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"\",\n" +
                "            \"valid_week\": \"1|2|3|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"满10元可返利\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210420210811\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210504235959\",\n" +
                "          \"id\": \"760636053831811840\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"15.00\",\n" +
                "          \"real_unit_price\": \"15.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"186781211\",\n" +
                "          \"valid_begin_time\": \"20210420210811\",\n" +
                "          \"valid_time_desc\": \"2021.05.04 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210420210811\",\n" +
                "          \"code\": \"40471-6VIsPoT\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"city_desc\": \"限北京,广州,潮州,东莞,云浮,中山,阳江,清远,揭阳,汕头,梅州,韶关,江门,佛山,河源,惠州,汕尾,茂名,肇庆,深圳,珠海,湛江可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"1,3,138,146,383,388,374,290,216,306,263,308,206,95,192,88,307,261,396,4,389,395\",\n" +
                "            \"code_rule\": \"general_unex\",\n" +
                "            \"count_pre\": 100,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210430235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"6VIsPoT\",\n" +
                "            \"id\": \"40471\",\n" +
                "            \"order_desc\": \"全部顺风车订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"10.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"quantity\": \"50000000\",\n" +
                "            \"ride_type\": \"70,71,72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"\",\n" +
                "            \"start_time\": \"20210311000000\",\n" +
                "            \"title\": \"顺风车车主接单奖\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"15.00\",\n" +
                "            \"use_type\": \"shoudanCashCoup\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"\",\n" +
                "            \"valid_date\": \"15\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"\",\n" +
                "            \"valid_week\": \"1|2|3|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"满10元可返利\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210420210811\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210504235959\",\n" +
                "          \"id\": \"760636053831812099\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"15.00\",\n" +
                "          \"real_unit_price\": \"15.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"186781211\",\n" +
                "          \"valid_begin_time\": \"20210420210811\",\n" +
                "          \"valid_time_desc\": \"2021.05.04 23:59:59之前有效\"\n" +
                "        }\n" +
                "      ]";*/

        String couponListStr = "[\n" +
                "        {\n" +
                "          \"assign_time\": \"20210309154107\",\n" +
                "          \"code\": \"371074-p9g558h\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"car_type_desc\": \"限金杯/艾康尼克可用\",\n" +
                "            \"city_desc\": \"全国可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"0\",\n" +
                "            \"code_rule\": \"general\",\n" +
                "            \"count_pre\": 10,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210430235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"p9g558h\",\n" +
                "            \"id\": \"371074\",\n" +
                "            \"order_desc\": \"全部顺风车订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"0.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"quantity\": \"10\",\n" +
                "            \"ride_type\": \"70,71,72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"car_model\\\":\\\"1,2,711,712,713,714,715,716,717,1451,1664,1710,4530,4534,4535,4360\\\",\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"\",\n" +
                "            \"start_time\": \"20210309000000\",\n" +
                "            \"title\": \"艾康妮可\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"30.00\",\n" +
                "            \"use_type\": \"CPS\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"20210309000000\",\n" +
                "            \"valid_date\": \"\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"20210430235959\",\n" +
                "            \"valid_week\": \"1|2|3|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"无门槛\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210309154107\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210430235959\",\n" +
                "          \"id\": \"729296330307928065\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"30.00\",\n" +
                "          \"real_unit_price\": \"30.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"149293934\",\n" +
                "          \"valid_begin_time\": \"20210309154107\",\n" +
                "          \"valid_time_desc\": \"2021.04.30 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210309154106\",\n" +
                "          \"code\": \"371074-p9g558h\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"car_type_desc\": \"限金杯/艾康尼克可用\",\n" +
                "            \"city_desc\": \"全国可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"0\",\n" +
                "            \"code_rule\": \"general\",\n" +
                "            \"count_pre\": 10,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210430235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"p9g558h\",\n" +
                "            \"id\": \"371074\",\n" +
                "            \"order_desc\": \"全部顺风车订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"0.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"quantity\": \"10\",\n" +
                "            \"ride_type\": \"70,71,72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"car_model\\\":\\\"1,2,711,712,713,714,715,716,717,1451,1664,1710,4530,4534,4535,4360\\\",\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"\",\n" +
                "            \"start_time\": \"20210309000000\",\n" +
                "            \"title\": \"艾康妮可\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"30.00\",\n" +
                "            \"use_type\": \"CPS\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"20210309000000\",\n" +
                "            \"valid_date\": \"\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"20210430235959\",\n" +
                "            \"valid_week\": \"1|2|3|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"无门槛\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210309154106\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210430235959\",\n" +
                "          \"id\": \"729296321717993472\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"30.00\",\n" +
                "          \"real_unit_price\": \"30.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"149293934\",\n" +
                "          \"valid_begin_time\": \"20210309154106\",\n" +
                "          \"valid_time_desc\": \"2021.04.30 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210309154108\",\n" +
                "          \"code\": \"371074-p9g558h\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"car_type_desc\": \"限金杯/艾康尼克可用\",\n" +
                "            \"city_desc\": \"全国可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"0\",\n" +
                "            \"code_rule\": \"general\",\n" +
                "            \"count_pre\": 10,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210430235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"p9g558h\",\n" +
                "            \"id\": \"371074\",\n" +
                "            \"order_desc\": \"全部顺风车订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"0.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"quantity\": \"10\",\n" +
                "            \"ride_type\": \"70,71,72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"car_model\\\":\\\"1,2,711,712,713,714,715,716,717,1451,1664,1710,4530,4534,4535,4360\\\",\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"\",\n" +
                "            \"start_time\": \"20210309000000\",\n" +
                "            \"title\": \"艾康妮可\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"30.00\",\n" +
                "            \"use_type\": \"CPS\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"20210309000000\",\n" +
                "            \"valid_date\": \"\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"20210430235959\",\n" +
                "            \"valid_week\": \"1|2|3|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"无门槛\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210309154108\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210430235959\",\n" +
                "          \"id\": \"729296338897862656\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"30.00\",\n" +
                "          \"real_unit_price\": \"30.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"149293934\",\n" +
                "          \"valid_begin_time\": \"20210309154108\",\n" +
                "          \"valid_time_desc\": \"2021.04.30 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210426111546\",\n" +
                "          \"code\": \"378435-kXHmbzV\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"city_desc\": \"全国可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"0\",\n" +
                "            \"code_rule\": \"general\",\n" +
                "            \"count_pre\": 10,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210531235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"kXHmbzV\",\n" +
                "            \"id\": \"378435\",\n" +
                "            \"order_desc\": \"全部顺风车订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"0.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"quantity\": \"200\",\n" +
                "            \"ride_type\": \"70,71,72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"\",\n" +
                "            \"start_time\": \"20210414000000\",\n" +
                "            \"title\": \"车主满返券\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"25.00\",\n" +
                "            \"use_type\": \"CPS\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"20210414000000\",\n" +
                "            \"valid_date\": \"\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"20210531235959\",\n" +
                "            \"valid_week\": \"1|2|3|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"无门槛\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210426111546\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210531235959\",\n" +
                "          \"id\": \"764783746699231233\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"25.00\",\n" +
                "          \"real_unit_price\": \"25.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"149293934\",\n" +
                "          \"valid_begin_time\": \"20210426111546\",\n" +
                "          \"valid_time_desc\": \"2021.05.31 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210304110230\",\n" +
                "          \"code\": \"370344-0SLg4ky\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"car_type_desc\": \"限雪铁龙可用\",\n" +
                "            \"city_desc\": \"限韶关,梅州,河源,汕头,揭阳,茂名,潮州,阳江,云浮,汕尾,江门,湛江,澄迈,白沙,琼海,海口,临高,定安,儋州,万宁,保亭,东方市,三亚,五指山,三沙,陵水,文昌,琼中,屯昌,昌江,乐东可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"308,263,192,306,216,261,138,374,383,307,206,395,1533,1537,1528,175,1534,1531,1517,1529,1536,1530,301,1526,1516,1540,1527,1535,1532,1538,1539\",\n" +
                "            \"code_rule\": \"general\",\n" +
                "            \"count_pre\": 10,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210331235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"0SLg4ky\",\n" +
                "            \"id\": \"370344\",\n" +
                "            \"order_desc\": \"限顺风车市内独享订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"0.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"plan_start_time_desc\": \"限10:53:00-11:54:00出发可用\",\n" +
                "            \"quantity\": \"10\",\n" +
                "            \"ride_type\": \"70\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"timeLimit\\\":[{\\\"time\\\":\\\"10:53:00-11:54:00\\\"}],\\\"car_model\\\":\\\"298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,1333,1523,1569,1791,4692,4693,4695,4697,4704,4706\\\",\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"测试测试车私房红烧放假啦上课；就；老地方看见啊；激发飞机拉萨的健康弗拉索夫看到监考老师的减肥动力三角阀\",\n" +
                "            \"start_time\": \"20210304000000\",\n" +
                "            \"title\": \"未到有效期\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"8.12\",\n" +
                "            \"use_type\": \"CPS\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"20210310000000\",\n" +
                "            \"valid_date\": \"\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"20210430235959\",\n" +
                "            \"valid_week\": \"1|2|3|4|5\",\n" +
                "            \"value_min_desc\": \"无门槛\",\n" +
                "            \"week_rule_desc\": \"限周一至周五可用\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210304110230\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210430235959\",\n" +
                "          \"id\": \"725441880627609601\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"8.12\",\n" +
                "          \"real_unit_price\": \"8.12\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"149293934\",\n" +
                "          \"valid_begin_time\": \"20210310000000\",\n" +
                "          \"valid_time_desc\": \"2021.04.30 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210303204138\",\n" +
                "          \"code\": \"370174-Dn6FS6M\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"city_desc\": \"限德阳,南宁,淮安,扬州,徐州,宿迁,泰州,盐城,连云港,常州,镇江,南昌,保定,衢州,丽水,绍兴,湖州,舟山,温州,福州,莆田,贵阳可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"154,266,196,98,347,319,321,364,234,61,387,265,112,294,252,297,179,400,339,53,281,167\",\n" +
                "            \"code_rule\": \"general\",\n" +
                "            \"count_pre\": 2,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210331235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"Dn6FS6M\",\n" +
                "            \"id\": \"370174\",\n" +
                "            \"order_desc\": \"限顺风车城际订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"10.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"plan_start_time_desc\": \"限18:38:00-19:39:00/20:39:00-21:39:00出发可用\",\n" +
                "            \"quantity\": \"10\",\n" +
                "            \"ride_type\": \"72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"timeLimit\\\":[{\\\"time\\\":\\\"18:38:00-19:39:00\\\"},{\\\"time\\\":\\\"20:39:00-21:39:00\\\"}],\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"123445\",\n" +
                "            \"start_time\": \"20210303000000\",\n" +
                "            \"title\": \"1\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"1.00\",\n" +
                "            \"use_type\": \"CPS\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"20210303000000\",\n" +
                "            \"valid_date\": \"\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"20210430235959\",\n" +
                "            \"valid_week\": \"1|2|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"满10元可返利\",\n" +
                "            \"week_rule_desc\": \"限周一至周二,周四至周日可用\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210303204138\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210430235959\",\n" +
                "          \"id\": \"724998193326063616\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"1.00\",\n" +
                "          \"real_unit_price\": \"1.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"149293934\",\n" +
                "          \"valid_begin_time\": \"20210303204138\",\n" +
                "          \"valid_time_desc\": \"2021.04.30 23:59:59之前有效\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"assign_time\": \"20210303204139\",\n" +
                "          \"code\": \"370174-Dn6FS6M\",\n" +
                "          \"couponSetInfo\": {\n" +
                "            \"city_desc\": \"限德阳,南宁,淮安,扬州,徐州,宿迁,泰州,盐城,连云港,常州,镇江,南昌,保定,衢州,丽水,绍兴,湖州,舟山,温州,福州,莆田,贵阳可用\",\n" +
                "            \"city_id\": \"0\",\n" +
                "            \"city_ids\": \"154,266,196,98,347,319,321,364,234,61,387,265,112,294,252,297,179,400,339,53,281,167\",\n" +
                "            \"code_rule\": \"general\",\n" +
                "            \"count_pre\": 2,\n" +
                "            \"coupon_type\": \"1\",\n" +
                "            \"description\": \"\",\n" +
                "            \"discount\": \"1.00\",\n" +
                "            \"end_time\": \"20210331235959\",\n" +
                "            \"expire_notify_push_content\": \"\",\n" +
                "            \"expire_notify_sms_content\": \"\",\n" +
                "            \"expire_notify_wx_content\": \"\",\n" +
                "            \"general_code\": \"Dn6FS6M\",\n" +
                "            \"id\": \"370174\",\n" +
                "            \"order_desc\": \"限顺风车城际订单可用\",\n" +
                "            \"order_type_allowed\": \"all\",\n" +
                "            \"order_value_min\": \"10.00\",\n" +
                "            \"passenger_tags\": \"\",\n" +
                "            \"plan_start_time_desc\": \"限18:38:00-19:39:00/20:39:00-21:39:00出发可用\",\n" +
                "            \"quantity\": \"10\",\n" +
                "            \"ride_type\": \"72,73\",\n" +
                "            \"ruleDetail\": \"\",\n" +
                "            \"rule_json\": \"{\\\"timeLimit\\\":[{\\\"time\\\":\\\"18:38:00-19:39:00\\\"},{\\\"time\\\":\\\"20:39:00-21:39:00\\\"}],\\\"limitArea\\\":true,\\\"operation\\\":\\\"1\\\"}\",\n" +
                "            \"special_remark\": \"123445\",\n" +
                "            \"start_time\": \"20210303000000\",\n" +
                "            \"title\": \"1\",\n" +
                "            \"type\": \"5\",\n" +
                "            \"unit_cost\": \"0.00\",\n" +
                "            \"unit_price\": \"1.00\",\n" +
                "            \"use_type\": \"CPS\",\n" +
                "            \"user_daily_max\": \"10\",\n" +
                "            \"user_type_allowed\": \"all\",\n" +
                "            \"valid_begin_date\": \"\",\n" +
                "            \"valid_begin_time\": \"20210303000000\",\n" +
                "            \"valid_date\": \"\",\n" +
                "            \"valid_end_date\": \"\",\n" +
                "            \"valid_end_time\": \"20210430235959\",\n" +
                "            \"valid_week\": \"1|2|4|5|6|7\",\n" +
                "            \"value_min_desc\": \"满10元可返利\",\n" +
                "            \"week_rule_desc\": \"限周一至周二,周四至周日可用\"\n" +
                "          },\n" +
                "          \"create_time\": \"20210303204139\",\n" +
                "          \"enable\": \"1\",\n" +
                "          \"expire_desc\": \"\",\n" +
                "          \"expire_time\": \"20210430235959\",\n" +
                "          \"id\": \"724998201915998209\",\n" +
                "          \"order_id\": \"0\",\n" +
                "          \"price\": \"1.00\",\n" +
                "          \"real_unit_price\": \"1.00\",\n" +
                "          \"status\": \"new\",\n" +
                "          \"to_expire\": 0,\n" +
                "          \"unable_reason\": \"\",\n" +
                "          \"use_time\": \"\",\n" +
                "          \"user_id\": \"149293934\",\n" +
                "          \"valid_begin_time\": \"20210303204139\",\n" +
                "          \"valid_time_desc\": \"2021.04.30 23:59:59之前有效\"\n" +
                "        }\n" +
                "      ]";
        List<CouponInfo> couponInfos = JsonMapper.json2List(couponListStr, CouponInfo.class);
        selectByRulesOfUse(couponInfos);
        old(couponInfos);
    }

    public static void selectByRulesOfUse(List<CouponInfo> driverCoupons) {
        StringBuilder stringBuilder = new StringBuilder();
        List<CouponInfo> collect = driverCoupons.stream().sorted(Comparator.comparing(CouponInfo::getPrice).reversed()
                .thenComparing(Comparator.comparing(CouponInfo::getExpire_time).reversed())
                .thenComparing((o1, o2) -> Integer.parseInt(o2.getCouponSetInfo().getCoupon_type()) - Integer.parseInt(o1.getCouponSetInfo().getCoupon_type())))
                .collect(Collectors.toList());
        for (CouponInfo driverCoupon : collect) {
            stringBuilder.append(driverCoupon.getPrice() + "---");
        }
        System.out.println("333333: " + stringBuilder);

    }

    public static void old(List<CouponInfo> driverCoupons) {
        StringBuilder stringBuilder = new StringBuilder();
        driverCoupons.sort((o1, o2) -> (int) (Float.parseFloat(o2.getPrice()) - Float.parseFloat(o1.getPrice())));
        for (CouponInfo driverCoupon : driverCoupons) {
            stringBuilder.append(driverCoupon.getPrice() + "---");
        }
        System.out.println("222222: " + stringBuilder);
    }

}
